package dr.joketalker.controller.view;

import java.util.LinkedList;
import java.util.List;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

public class GridViewAdapter extends BaseAdapter{

	
	protected List<GridItem> listGridItem = new LinkedList<GridItem>();
	protected Context m_context;
	
	public GridViewAdapter(Context c){
		m_context = c;
	}
	
	public void addItem(GridItem gi){
		listGridItem.add(gi);
	}
	
	@Override
	public int getCount() {
		// TODO Auto-generated method stub
		

		return listGridItem.size();
	}

	@Override
	public Object getItem(int arg0) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public long getItemId(int arg0) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public View getView(int position, View convertView, ViewGroup arg2) {

		

		
		
		GridItem gi = listGridItem.get(position);


		return gi;
	}

}
